<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<section class="main-body">
<!--<div id="divBannerFloatLeft">
	<img src="<?php echo Yii::app()->theme->baseUrl;?>/img/slider/banner/left.jpg" />
</div>-->
<div class="container">
	<div class="row-fluid">
		<div class="span8">
			<?php if(isset($this->breadcrumbs)):?>
		        <?php $this->widget('zii.widgets.CBreadcrumbs', array(
		            'links'=>$this->breadcrumbs,
		            'homeLink'=>CHtml::link('Dashboard'),
		            'htmlOptions'=>array('class'=>'breadcrumb')
		        )); ?><!-- breadcrumbs -->
		    <?php endif?>

		    <!-- Include content pages -->
		    <?php echo $content; ?>

		</div><!--/span-->

		<div class="span4">
			<?php include_once('tpl_sidebar.php');?>

		</div><!--/span-->

	</div><!--/row-->
</div>
<!--<div id="divBannerFloatRight">
	<img src="<?php echo Yii::app()->theme->baseUrl;?>/img/slider/banner/left.jpg" />
</div>-->
</section>

<script type="text/javascript">
//$(document).ready(function(){
//	$(document).ready(function(){
//		var bFLeft = $("#divBannerFloatLeft");
//		var bFRight = $("#divBannerFloatRight");
//		var left_Positiion = 0;
//		var right_Positiion = 0;
//		var window_Width = $(window).width();
//		var document_Width = 1020;
//		if (window_Width < document_Width)
//		{
//			bFLeft.hide();
//			bFRight.hide();
//		}
//		else
//		{
//			right_Positiion = (window_Width - document_Width)/2 + document_Width;
//			left_Positiion = (window_Width - document_Width)/2 + document_Width;
//			bFLeft.attr("style", "float: left; position: fixed; top: 141px;right: " + right_Positiion + "px;_position:absolute;_top:120px;");
//			bFRight.attr("style", "float: right; position: fixed; top: 141px;left: " + left_Positiion + "px; _position:absolute;_top:120px;");
//			bFLeft.append("<br style='clear: both;' />");
//			bFRight.append("<br style='clear: both;' />");
//			banner_height = 400;
//			$(window).scroll(function() {
//				var scrollTop = $(this).scrollTop();
//				if(scrollTop > 140)
//				{
//					bFLeft.attr("style", "float: left; position: fixed !important; top: 0px; right: " + right_Positiion + "px;_position:absolute;_top:120px;");
//					bFRight.attr("style", "float: right; position: fixed !important; top: 0px; left: " + left_Positiion + "px;_position:absolute;_top:120px;");
//				}
//				else
//				{
//					bFLeft.attr("style", "float: left; position: fixed !important; top: 141px;right: " + right_Positiion + "px;_position:absolute;_top:120px;");
//					bFRight.attr("style", "float: right; position: fixed !important; top: 141px;left: " + left_Positiion + "px;_position:absolute;_top:120px;");
//				}
//			});
//		}
//	});
//});
</script>


<?php $this->endContent(); ?>